/* AutoSuggest CSS - Version 1.3 */

.as-selections {
  overflow: auto;
  list-style: none;
  padding: 4px 0 4px 4px;
  border-width: 1px;
    border-style: solid;
    border-color: #888 #aaa #b6b6b6;
  margin: 0;
  background-color: #fff;
  -webkit-box-shadow: inset 0 1px 2px #888;
  -moz-box-shadow: inset 0 1px 2px #888;
  box-shadow: inset 0 1px 2px #888;
}

.as-selections.loading {
  background-color: #eee;
}

.as-selections li {
  float: left;
  margin: 1px 4px 1px 0;
}

/* ------------------------------------------------------------------------------------------------------------- NEW INPUT BOX */

.as-selections .as-original {
  margin-left: 0;
}

.as-selections .as-original .as-input {
  width: 120px;
  height: 18px;
  padding-top: 3px;
  border: 0;
  outline: 0;
  font-size: 13px;
}

/* ------------------------------------------------------------------------------------------------------------- DISPLAYED ITEMS */

.as-selections .as-selection-item {
    position: relative;
    min-height: 13px;
  padding: 4px 25px 4px 10px;
  border: 1px solid #acc3ec;
  border-top-color: #c0d9e9;
  font-size: 13px;
    line-height: 13px;
  color: #2b3840;
  text-shadow: 0 1px 1px #fff;
  background-color: #ddeefe;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ddeefe), to(#bfe0f1));
  background-image: -webkit-linear-gradient(#ddeefe, #bfe0f1);
  background-image: -moz-linear-gradient(#ddeefe, #bfe0f1);
  background-image: -o-linear-gradient(#ddeefe, #bfe0f1);
  background-image: linear-gradient(#ddeefe, #bfe0f1);
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  -webkit-box-shadow: 0 1px 1px #e4edf2;
  -moz-box-shadow: 0 1px 1px #e4edf2;
  box-shadow: 0 1px 1px #e4edf2;
}

.as-selections .as-selection-item:hover {
  border-color: #8bb7ed #6da0e0 #6da0e0;
  color: #2b3840;
  background-color: #bbd4f1;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#bbd4f1), to(#a3c2e5));
  background-image: -webkit-linear-gradient(#bbd4f1, #a3c2e5);
  background-image: -moz-linear-gradient(#bbd4f1, #a3c2e5);
  background-image: -o-linear-gradient(#bbd4f1, #a3c2e5);
  background-image: linear-gradient(#bbd4f1, #a3c2e5);
}

.as-selections .as-selection-item:last-child {
  margin-left: 30px;
}

.as-selections .as-selection-item.blur {
  border-color: #ccc #bbb #bbb;
  color: #666666;
  background-color: #f4f4f4;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f4f4f4), to(#d5d5d5));
  background-image: -webkit-linear-gradient(#f4f4f4, #d5d5d5);
  background-image: -moz-linear-gradient(#f4f4f4, #d5d5d5);
  background-image: -o-linear-gradient(#f4f4f4, #d5d5d5);
  background-image: linear-gradient(#f4f4f4, #d5d5d5);
  -webkit-box-shadow: 0 1px 1px #e9e9e9;
  -moz-box-shadow: 0 1px 1px #e9e9e9;
  box-shadow: 0 1px 1px #e9e9e9;
}

.as-selections .as-selection-item.selected {
  border-color: #1f30e4;
}

/* ............................................................................................................. Close button */

.as-selections .as-selection-item .as-close {
  position: absolute;
    top: 50%;
    right: 5px;
    width: 16px;
    height: 16px;
  margin: -8px 0 0;
  font: bold 18px/16px sans-serif;
  text-shadow: 0 1px 1px #fff;
    text-align: center;
    text-decoration: none;
  color: #5491be;
  cursor: pointer;
  -webkit-transition: color .1s ease-in;
  -moz-transition: color .1s ease-in;
  -o-transition: color .1s ease-in;
  transition: color .1s ease-in;
}

.as-selections .as-selection-item:hover .as-close {
  color: #4d70b0;
}

.as-selections .as-selection-item .as-close:hover,
.as-selections .as-selection-item .as-close:focus,
.as-selections .as-selection-item .as-close:active {
  color: #1b3c65;
}

.as-selections .as-selection-item.blur .as-close {
  color: #999;
}

/* ------------------------------------------------------------------------------------------------------------- SUGGESTIONS LIST */

.as-results {
  position: absolute;
  z-index: 2;
}

.as-list {
  list-style: none;
  padding: 0;
    border: 1px solid #ccc;
  margin: 2px 0 0 0;
  color: #000;
  background-color: #fff;
  background-color: rgba(255,255,255,0.95);
  -webkit-box-shadow: 0 2px 12px #222;
  -moz-box-shadow: 0 2px 12px #222;
  box-shadow: 0 2px 12px #222;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

/* ............................................................................................................. Individual items */

.as-result-item,
.as-message {
  padding: 5px 12px;
  border: 1px solid #fff;
  border-bottom-color: #ddd;
  margin: 0 0 0 0;
  font-size: 14px;
    line-height: 1.2em;
  cursor: pointer;
  background-color: transparent;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

.as-result-item:first-child {
  margin: 0;
}

.as-result-item.active {
  border-color: #3342e8;
  text-shadow: 0 1px 2px #122042;
  color: #fff;
  background-color: #3668d9;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#6481F5), to(#3E54F2));
  background-image: -webkit-linear-gradient(#6481F5, #3E54F2);
  background-image: -moz-linear-gradient(#6481F5, #3E54F2);
  background-image: -o-linear-gradient(#6481F5, #3E54F2);
  background-image: linear-gradient(#6481F5, #3E54F2);
}

.as-result-item em {
  padding: 0 2px;
  font-style: normal;
  color: #fff;
  background: #444;
}

.as-result-item.active em {
  color: #fff;
  background: #253f7a;
}

/* Displayed when no results */
.as-message {
  margin: 0;
  cursor: default;
}